package com.example.drugaiservice.service;

import com.example.drugaiservice.pojo.dto.HospDTO;
import com.example.drugaiservice.pojo.entity.Case;
import com.example.drugaiservice.pojo.entity.Drug;
import com.example.drugaiservice.pojo.entity.Hospital;
import com.example.drugaiservice.pojo.vo.HospVO;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface AskService {
    /*
     * 通过百度大模型发出问题并返回答案
     * */
    List<String> askS(String questions) throws Exception;
    /*
    * 识别图片并获取药品实体类
    * */
    Drug findPandReturnDrug(byte[] path) throws Exception;

    /*
    * 通过传入一个大概名称获取药品信息
    * */
    Drug NameReturnDrug(String name) throws JsonProcessingException;

    Hospital findPandReturnHospital(byte[] path) throws Exception;
    /*
    * 通过上传图片或者拍摄返回病例分析
    * */
    Case findPandReturnCase(byte[] path) throws Exception;

    List<HospVO> findTop2(HospDTO hosp);
}
